%**************************************************************
%
% Reads the a list of measurements from a .txt file
% Format:
% Autor: Carlos Amaral (ceamaral@hotmail.com)
% data: 07/10/2010
%**************************************************************

function [files_list] = txt_list_to_struct(file,data_type,extension)

% fp = fopen(file);
% nr=1;
% while ~feof(fp)
%     if nr==1
%         names = fgetl(fp);
%     else
%         names = [names;fgetl(fp)];
%     end
%     nr = nr+1;
% end
names=readTxt(file);
nr=size(names,1);
%nr = nr-1;
for i = 1:nr    
    aux = [names(i).name '_' data_type extension];    
    files_list(i,1).name = aux;    
end
%fclose(fp);
return